package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ButlerTaskStatusLogMapper;
import com.whq.entity.ButlerTaskStatusLog;
import com.whq.service.ButlerTaskStatusLogService;

@Service(value = "tdButlerTaskStatusLogService")
public class ButlerTaskStatusLogServiceImpl implements ButlerTaskStatusLogService {

    @Autowired
    private ButlerTaskStatusLogMapper<ButlerTaskStatusLog>tdButlerTaskStatusLogMapper;
    
    @Override
    public Integer insertSelective(ButlerTaskStatusLog tdButlerTaskStatusLog) throws Exception {
           return this.tdButlerTaskStatusLogMapper.insertSelective(tdButlerTaskStatusLog);
        }

    @Override
    public Integer insertBatch(List<ButlerTaskStatusLog> tdButlerTaskStatusLog) throws Exception {
           return this.tdButlerTaskStatusLogMapper.insertBatch(tdButlerTaskStatusLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdButlerTaskStatusLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdButlerTaskStatusLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ButlerTaskStatusLog tdButlerTaskStatusLog) {
           return this.tdButlerTaskStatusLogMapper.updateByPrimaryKeySelective(tdButlerTaskStatusLog);
    }

    @Override
    public ButlerTaskStatusLog findById(Object id) {
           return (ButlerTaskStatusLog) this.tdButlerTaskStatusLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ButlerTaskStatusLog> selectByCondition(ButlerTaskStatusLog tdButlerTaskStatusLog) {
           return (List<ButlerTaskStatusLog>) this.tdButlerTaskStatusLogMapper.selectByCondition(tdButlerTaskStatusLog);
    }

    @Override
    public Integer selectCountByCondition(ButlerTaskStatusLog tdButlerTaskStatusLog) {
           return  this.tdButlerTaskStatusLogMapper.selectCountByCondition(tdButlerTaskStatusLog);
    }

}
